import {Component, OnInit, TemplateRef} from '@angular/core';
import {ToastService} from '../../services/toast.service';

@Component({
  selector: 'app-toast',
  templateUrl: './toast.component.html',
  styleUrls: ['./toast.component.css']
})
export class ToastComponent implements OnInit {

  constructor(public toastService:ToastService) { }

  ngOnInit(): void {
  }
isTemplate(toast){return toast.textOrTp1 instanceof TemplateRef;}
}
